<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "tags".
 *
 * @property string $tag_id
 * @property string $tag_name
 * @property int $create_at
 * @property int $type
 */
class Tags extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tags';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['create_at', 'type'], 'integer'],
            [['tag_name'], 'string', 'max' => 64],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'tag_id' => 'Tag ID',
            'tag_name' => 'Tag Name',
            'create_at' => 'Create At',
            'type' => 'Type',
        ];
    }
}
